import React, {  useState } from 'react';
import ChildComponent from './ChildComponent';
function Memo(params) {
    const [mm, setMm] = useState('dengdai')
    const [gg, setGg] = useState('dengdai')

    return (
        <div>
            <button onClick={()=>{setMm(new Date().getTime())}}>mm</button>
            <button onClick={()=>{setGg(new Date().getTime() + '  load gg')}}>gg</button>
            <ChildComponent name={mm}>{gg}  </ChildComponent>
        </div>
    )
}

export default Memo